package com.irdstudio.efp.e4a.service.facade;

import java.util.List;
import java.util.Map;

import com.irdstudio.efp.e4a.service.vo.SDataPersVO;
import com.irdstudio.efp.e4a.service.vo.SRoleDataRuleVO;

/**
 * <p>
 * Description:系统角色对应数据资源权限表
 * <p>
 * 
 * @author fuzm
 * @date 2018-05-03
 */
public interface SRoleDataRuleService {
	// 系统角色对应数据资源权限配置接口
	public Map<String,String> getDataRuleType(String dataPersId, List<String> roleCodes);

	public List<SRoleDataRuleVO> queryAllRoleOwner(SRoleDataRuleVO sRoleDataRuleVo);

	public List<SRoleDataRuleVO> queryAllRoleCurrOrg(SRoleDataRuleVO sRoleDataRuleVo);

	public List<SRoleDataRuleVO> queryAllRoleCurrDownOrg(SRoleDataRuleVO sRoleDataRuleVo);

	public int insertSRoleDataRule(SRoleDataRuleVO vo);

	public int deleteRoleByPk(SRoleDataRuleVO sRoleDataRuleVo);

	public int updateRoleByPk(SRoleDataRuleVO sRoleDataRuleVo);

	public SRoleDataRuleVO queryRoleByPk(SRoleDataRuleVO sRoleDataRuleVo);

	// 系统数据权限配置接口
	public List<SDataPersVO> queryAllDataOwner(SDataPersVO sDataPersVo);

	public List<SDataPersVO> queryAllDataCurrOrg(SDataPersVO sDataPersVo);

	public List<SDataPersVO> queryAllDataCurrDownOrg(SDataPersVO sDataPersVo);

	public int insertSDataPers(SDataPersVO vo);

	public int deleteDataByPk(SDataPersVO sDataPersVo);

	public int updateDataByPk(SDataPersVO sDataPersVo);

	public SDataPersVO queryDataByPk(SDataPersVO sDataPersVo);

}
